package strategy.a;

public class StrategyTest {

	public static void main(String[] args) {
		
		CashContext cashContext = new CashContext("正常收费");
		
		double result = cashContext.getResult(500);
		
		cashContext = new CashContext("打八折");
		result = cashContext.getResult(result);
		
		cashContext = new CashContext("满300减30");
		result = cashContext.getResult(result);
		
		System.out.println("result:"+result);
		
	}

}
